home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Embed / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.4 KB  |  88 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef PART_H
  13. #define PART_H
  14.  
  15. // ----- Framework Includes -----
  16.  
  17. #ifndef FWPARTNG_H
  18. #include "FWPartng.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward class declaration
  23. //========================================================================================
  24.  
  25. class FW_CPresentation;
  26. class CEmbedFrame;
  27. class CEmbedProxy;
  28. class CEmbedSelection;
  29. class CEmbedContent;
  30.  
  31. //========================================================================================
  32. //    CLASS CEmbedPart
  33. //========================================================================================
  34.  
  35. class CEmbedPart : public FW_CEmbeddingPart
  36. {
  37. //----------------------------------------------------------------------------------------
  38. //    Initialization/Destruction
  39. //
  40.   public:
  41.     FW_DECLARE_AUTO(CEmbedPart)
  42.     
  43.     CEmbedPart(ODPart* odPart);
  44.     virtual void Initialize(Environment* ev);
  45.     
  46.     virtual ~CEmbedPart();
  47.         
  48. //----------------------------------------------------------------------------------------
  49. //    Inherited API
  50. //
  51.   public:
  52.     virtual FW_CFrame*         NewFrame(Environment* ev,
  53.                                     ODFrame* odFrame, 
  54.                                     FW_CPresentation* presentation,
  55.                                     FW_Boolean fromStorage);
  56.  
  57.     virtual FW_CContent*     NewPartContent(Environment* ev);
  58.  
  59.     virtual FW_Boolean        DoMenu(Environment* ev, 
  60.                                     const FW_CMenuEvent& theMenuEvent);
  61.     virtual FW_Boolean        DoAdjustMenus(Environment* ev, 
  62.                                     FW_CMenuBar* menuBar, 
  63.                                     FW_Boolean hasMenuFocus,
  64.                                     FW_Boolean isRoot);
  65.                                      
  66. //----------------------------------------------------------------------------------------
  67. //    New API
  68. //
  69. public:
  70.     void                    ChangeEmbeddedFacets(Environment* ev, 
  71.                                     ODCommandID facetNumber);
  72.     
  73.     FW_CPresentation*        GetPresentation() const
  74.                                     {return fPresentation;}
  75.     ODCommandID                FacetNumber() const
  76.                                     {return fFacetNumber;}
  77.                                 
  78. //----------------------------------------------------------------------------------------
  79. //    Data Members
  80. //
  81. private:
  82.     FW_CPresentation*    fPresentation;
  83.     CEmbedContent*        fEmbedContent;
  84.     ODCommandID            fFacetNumber;
  85. };
  86.  
  87. #endif
  88.